import Vue from 'vue'
import App from './App.vue'
//导入
import VueRouter from 'vue-router'
//use
Vue.use(VueRouter)
//导入需要通过路由管理的组件
import faxian from './components/faxian.vue'
import tuijian from './components/tuijian.vue'
import zuixin from './components/zuixin.vue'
import zuixinmv from './components/zuixinmv.vue'
import serchxq from './components/serchxq.vue'

// 导入elementui
import ElementUI from 'element-ui'
//导入element-ui的样式
import 'element-ui/lib/theme-chalk/index.css';
//use一下
Vue.use(ElementUI)


//创建路由
let router =new VueRouter({
     routes:[
       
         //配置地址和组件的对应关系
         
        {
     //地址
     path:"/faxian",
     component: faxian  
     
        },
        {
          //控地址
          path:"/",
          component: faxian  
             },
        {
          path:"/tuijian",
          component:tuijian  
         },
         {
          path:"/zuixin",
          component:zuixin  
         },
         {
          path:"/zuixinmv",
          component:zuixinmv  
         },
         {
          path:"/serchxq",
          component:serchxq  
         }
     ]

    })



Vue.config.productionTip = false

new Vue({
  render: h => h(App),
//挂载到vue实例中
router

}).$mount('#app')
